import request from '@/utils/request'
import qs from 'qs'

// 类目树列表
export function apiServiceCategoryTree(data) {
    return request({
        method: 'post',
        url: '/serviceCategory/categoryTree',
        headers: {
              "Content-Type": "application/x-www-form-urlencoded"
        },
        data: qs.stringify(data),
    })
}

// 类目树列表
export function apiServiceCategoryList(data) {
    return request({
        method: 'post',
        url: '/serviceCategory/categoryList',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
